<%-- 
    Document   : GetCartItem
    Created on : Sep 30, 2011, 10:25:27 PM
    Author     : James
--%>

<%@page import="servlet.Cart"%>
<%@ page contentType="text/xml" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%
        HttpSession clientSession = request.getSession();
        Cart cart = (Cart) clientSession.getAttribute("cart");
        // Create a new cart if the customer doesn't have one
        if (cart == null) {
            cart = new Cart();
            clientSession.setAttribute("cart", cart);
        }
%>

